package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.OmsOrder;
import com.ruoyi.system.domain.vo.OrderDeptExcel;
import com.ruoyi.system.domain.vo.OrderVo;

/**
 * 订单Mapper接口
 *
 * @author ruoyi
 * @date 2024-11-29
 */
public interface OmsOrderMapper
{
    /**
     * 查询订单
     *
     * @param orderId 订单主键
     * @return 订单
     */
    public OmsOrder selectOmsOrderByOrderId(Long orderId);

    /**
     * 查询订单列表
     *
     * @param omsOrder 订单
     * @return 订单集合
     */
    public List<OmsOrder> selectOmsOrderList(OmsOrder omsOrder);

    /**
     * 新增订单
     *
     * @param omsOrder 订单
     * @return 结果
     */
    public int insertOmsOrder(OmsOrder omsOrder);

    /**
     * 修改订单
     *
     * @param omsOrder 订单
     * @return 结果
     */
    public int updateOmsOrder(OmsOrder omsOrder);

    /**
     * 删除订单
     *
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteOmsOrderByOrderId(Long orderId);

    /**
     * 批量删除订单
     *
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsOrderByOrderIds(Long[] orderIds);


    List<OrderVo> getOrderProductList(OmsOrder omsOrder);


    List<OrderDeptExcel> selectOmsOrderExportExcel(OmsOrder omsOrder);
}
